import {RouteRecordRaw} from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: "/child/vite/login",
    },
    {
        path: '/child/vite',
        redirect: "/child/vite/login",
    },
    {
        path: '/child/vite/login',
        component: () => import('../views/login/login.vue')
    },
    {
        path: '/child/vite/home',
        component: () => import("../views/home/Home.vue"),
        children: [
            {
                path: '/child/vite/roles',
                component: () => import('@/views/system/role.vue')
            },
            {
                path: '/child/vite/user',
                component: () => import('@/views/system/user.vue')
            },
        ]
    },
    {
        path: '/child/vite/roles2',
        component: () => import('@/views/system/role.vue')
    },
];
export default routes
